package com.example.firstdemo.network.api.system

import com.example.firstdemo.network.api.system.data.DictData
import com.example.firstdemo.network.service.BaseResponse
import com.example.firstdemo.network.service.RetrofitService
import retrofit2.http.GET
import retrofit2.http.Path

interface SystemInterface {
    @GET("system/dict/data/type/{dictType}")
    suspend fun getDict(
        @Path("dictType") dictType: String
    ): BaseResponse<List<DictData>>
}

object SystemApi : SystemInterface by RetrofitService.create()